Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add althea payments test #793

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Add althea payments test #793

merged 1 commit into from
Jul 11, 2023

Conversation

ptulugu
Copy link
Contributor

@ptulugu ptulugu commented Jun 21, 2023

Setup a simple test for althea payments as well as varous bug fixes for payment modules

This commit includes a simple test to test an althea chain payments between two nodes.
It includes various bug fixes and improvements for payment validator/controller:
1.) Generate althea private key using .into()
2.) Send microtx with a wait timeout of 30 sec
3.) Uint256::from_str_radix instead of parse() on althea hash
4.) Hold a write lock for the entire validate_later flow to prevent double payments
5.) Separate validation flows for althea and eth payments

@ptulugu ptulugu force-pushed the pranay/althea_blockchain branch 2 times, most recently from 724538b to b8a63c8 Compare July 5, 2023 19:00
@ptulugu ptulugu force-pushed the pranay/althea_blockchain branch 2 times, most recently from 176152d to 331525e Compare July 10, 2023 20:18
Copy link
Member

@jkilpatr jkilpatr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good I've left a few comments about cleanups and hopefully reducing the runtime by about 8 minutes by removing duplicate proposals.

integration_tests/src/payments_althea.rs Outdated Show resolved Hide resolved
integration_tests/src/payments_althea.rs Show resolved Hide resolved
integration_tests/src/payments_althea.rs Outdated Show resolved Hide resolved
integration_tests/src/payments_althea.rs Outdated Show resolved Hide resolved
integration_tests/src/utils.rs Outdated Show resolved Hide resolved
integration_tests/src/utils.rs Show resolved Hide resolved
integration_tests/src/utils.rs Show resolved Hide resolved
test_runner/src/main.rs Show resolved Hide resolved
…or payment modules

This commit includes a simple test to test an althea chain payments between two nodes.
It includes various bug fixes and improvements for payment validator/controller:
1.) Generate althea private key using .into()
2.) Send microtx with a wait timeout of 30 sec
3.) Uint256::from_str_radix instead of parse() on althea hash
4.) Hold a write lock for the entire validate_later flow to prevent double payments
5.) Separate validation flows for althea and eth payments
@ptulugu ptulugu changed the title WIP: Add althea payments test Add althea payments test Jul 11, 2023
@ptulugu ptulugu merged commit b82324c into master Jul 11, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants